package com.wwj.study.decorator;

/**
 * Created by lenovo on 2018/11/20.
 */
public class NewHouse implements IRoute {

    private House house;
    public NewHouse(House house){
        this.house=house;
    }

    @Override
    public void walkHome() {
        house.walkHome();
    }

    @Override
    public void trainHome() {
        house.trainHome();
    }

    public void airHome(){
        System.out.println("做飞机回家");
    }
}
